package org.example3;

public class Main {
    public static void main(String[] args) throws Throwable {
        LocalResource localResource = new LocalResource();


        new UserUtil().getUserDetails(new AsyncCallback<ZUser>() {
            @Override
            public void onFailure(Throwable caught) {
                System.out.println(Thread.currentThread().getName()+"----异常了: " + caught.getMessage());
            }

            @Override
            public void onSuccess(ZUser result) {
                System.out.println(Thread.currentThread().getName()+"----正常result: " + result);
                localResource.method1();
            }
        });

    }
}
